<!--  -->
<template>
  <div class="wrapper" v-if="isShow">
    <img src="./loading.gif">
  </div>
</template>

<script>
export default {
  name: "loading",
  props: {
    isShow: {
      type: Boolean,
      default: () => true,
    }
  },
  data () {
    return {

    }
  },
  created () {

  },
  mounted () {

  }
}
</script>
<style lang="scss" scoped>
.wrapper {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
  height: 100%;
  z-index: 997;

  img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3.4rem;
    height: auto;
    transform: translate(-50%, -50%);
  }
}
</style>